Enabling intellisense in Visual Studio for XML files. |
Alex van Buitenen, Mar 2009 |
You can enable intellisense in Visual Studio for XML files by copying the corresponding schema (XSD file) to:
C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas (location for Visual Studio 2005).
This way intellisense can be enabled for Nant, NHibernate ,etc...
The NHibernate XSD's are included in the NHibernate download.
The NAnt XSD can be produced using this NAnt build-file:
fig 1. The NAnt build-file (CreateNAntXsd.build) to create the NAnt XSD.
This file can be called by the command:
"C:\Program Files\NAnt\bin\NAnt.exe" -buildfile:CreateNAntXsd.build